<?php
class Gallery_Model_DbTable_Media extends Zend_Db_Table_Abstract {
	protected $_name = 'gallery_media';
	protected $_rowClass = 'Gallery_Model_DbTable_Media_Row';

	protected $_referenceMap    = array(
        'Album' => array(
            'columns'           => 'album_id',
            'refTableClass'     => 'Gallery_Model_DbTable_Album',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
            'onDelete'		=> self::CASCADE
        )
    );
}